package com.example.lotterysystem.controller.param;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @auther falls_vc
 * description:
 * @date 2025/5/28  19:25
 */
@Data
public class CreateActivityParam implements Serializable {
    /**
     * 活动名称
     */
    @NotBlank(message = "活动名称不能为空！")
    private String activityName;
    @NotBlank(message = "活动描述不能为空！")
    private String description;
    /**
     * 活动关联奖品信息
     */
    @NotEmpty(message = "活动奖品列表不能为空！")
    @Valid
    private List<CreatePrizeByActivityParam> activityPrizeList;
    /**
     * 活动关联用户信息
     */
    @NotEmpty(message = "活动人员信息不能为空！")
    @Valid
    private List<CreateUserByActivityParam> activityUserList;

}
